package net.lainiao.morethread.Chapter1.demo8;

/**
 * Created by Administrator on 2017/2/28.
 */
public class Main {
    public static void main(String[] args) {
        MyThreadGroup threadGroup=new MyThreadGroup("MyThreadGroup");
        Task task=new Task();
        for (int i = 0; i < 2; i++) {
            Thread t=new Thread(threadGroup,task);
            t.start();
        }

    }
}
